import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {

        File file = new File("Day4\\bbb");
        if (file.exists()) {
            System.out.println("此路径存在");
        } else {
            System.out.println("此路径不存在");
            file.mkdir();
        }
        File file2 = new File(file, "a.txt");
        try {
            file2.createNewFile();
        } catch (IOException e) {
            new RuntimeException(e);
        }
    }
}
